### Makefile --- 

## Author: xuzx@shterm.com
## Version: $Id: Makefile,v 0.0 2011/11/03 06:41:28 shell Exp $
## Keywords: 
## X-URL: 

TARGETS=$(shell ls *.tmpl | sed 's/tmpl/py/g')

build: $(TARGETS)
	ls *.tmpl | sed 's/\(.*\)\.tmpl/from \1 import \1/g' > __init__.py

clean:
	rm -f *.bak *.pyc
	rm -f __init__.py $(TARGETS)

%.py: %.tmpl
	cheetah compile --nobackup $^

### Makefile ends here
